package com.feizhi.common.search.index.action;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.IndexWriter;
import org.springframework.beans.factory.annotation.Autowired;

public class AbstractIndexAction {

	protected Analyzer analyzer;
	
	protected IndexWriter writer;

	@Autowired
	public void setAnalyzer(Analyzer analyzer) {
	    this.analyzer = analyzer;
	}

	@Autowired
	public void setWriter(IndexWriter writer) {
	    this.writer = writer;
	}

}